package com.atguigu.gmall.activity.service;

import com.atguigu.gmall.activity.model.SeckillGoods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  业务接口类
 * @author atguigu
 * @since 2023-09-22
 */
public interface SeckillGoodsService extends IService<SeckillGoods> {

    void processSeckill2Cache();


    /**
     * 查询当日参与秒杀商品
     * @return
     */
    List<SeckillGoods> getSeckillGoods();

    /**
     * 查询秒杀商品详情
     * @param skuId
     * @return
     */
    SeckillGoods getSecGoodsById(Long skuId);
}
